/**
 * 
 */
package kr.co.insoft.driver.amazon.model;

import java.util.Collection;
import java.util.HashSet;

import kr.co.insoft.driver.model.DriverCredentialModel;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
public class AmazonCredentialModel extends DriverCredentialModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5971931504153678850L;

	public AmazonCredentialModel() {

	}

	/**
	 * @param string
	 * @param string2
	 */
	public AmazonCredentialModel(String apiKey, String secretKey) {
		setAccessKey(apiKey);
		setSecretKey(secretKey);
	}

	/**
	 * Amazon 용 인증객체 반환
	 * 
	 * @return
	 */
	public AWSCredentials getAmazonCredentials() {
		return new BasicAWSCredentials(getAccessKey(), getSecretKey());
	}

	/**
	 * Amazon Owner
	 * 
	 * @return
	 */
	public Collection<String> getAmazonOwners() {
		HashSet<String> owners = new HashSet<String>();
		owners.add("self");
		return owners;
	}
}
